﻿using System;

namespace Terraria.ModLoader.IO
{
	// Token: 0x020002D0 RID: 720
	public class BoolTagSerializer : TagSerializer<bool, byte>
	{
		// Token: 0x06001BF9 RID: 7161 RVA: 0x0001407F File Offset: 0x0001227F
		public override byte Serialize(bool value)
		{
			return value ? 1 : 0;
		}

		// Token: 0x06001BFA RID: 7162 RVA: 0x00014089 File Offset: 0x00012289
		public override bool Deserialize(byte tag)
		{
			return tag > 0;
		}
	}
}
